package com.exhr.biz.impl;

import com.exhr.biz.PostBiz;
import com.exhr.dao.PostDao;
import com.exhr.pojo.Tpost;

public class PostBizImpl implements PostBiz{
	private PostDao postdao;
	
	public void delPost(int id) {
		postdao.delete(id);
		
	}

	public void updatePost(Tpost post) {
		postdao.update(post);
	}
	
	public Tpost getPostById(int id){
		return postdao.query(id);
	}
	
	public void addPost(Tpost post){
		postdao.add(post);
	}

	public void setPostdao(PostDao postdao) {
		this.postdao = postdao;
	}

	
}
